package org.tyut.xyl.game.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class GsonUtil {
    private volatile static GsonBuilder gsonBuilder;

    private GsonUtil() {};

    public static GsonBuilder getGsonBuilder() {
        if(gsonBuilder==null){
            synchronized (GsonUtil.class){
                if(gsonBuilder==null){
                    gsonBuilder=new GsonBuilder();
                }
            }
        }
        return gsonBuilder;
    }
}
